package com.capgemini.remind.pojo;

import java.io.Serializable;

/**
 * Created by annson on 2016/7/5.
 */
public class CodeValue implements Serializable {

    private String code;
    private String codeValue;
    private String codeType;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof CodeValue) {
			if(null != this.code) {
				if(this.code.equals(((CodeValue) obj).getCode())) {
					return true;
				}
			}
		}
		return false;
	}

    @Override
    public int hashCode() {
        return this.code.hashCode();
    }

}
